JchOptimize\Core\Html\HtmlManager B

Total Complexity 87
Dependencies 27
Dependents 5
Total lines 502
Lines of code 322
Logical lines of code 166
Comment lines 43
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
replaceLinks()
A
47 9 34
addCustomCss()
A
49 8 36
buildUrl()
A
49 8 31
createStaticFiles()
S
54 7 19
addDataFileToElement()
S
60 5 12
loadCssAsync()
S
61 5 11
preloadStyleSheet()
S
55 4 19
addDeferredJs()
S
59 4 15
isGZ()
S
73 4 4
preProcessHtml()
S
71 3 5
getNewJsLink()
S
65 3 10
postProcessHtml()
S
71 3 5
cleanScript()
S
61 2 14
appendChildToHead()
S
61 2 13
addExcludedJsToSection()
S
62 2 11
addCriticalJsToSection()
S
74 2 5
deferScript()
S
66 2 9
noMoreExcludedJsFiles()
S
76 2 4
addCriticalCssToHead()
S
61 1 12
removeJsLinks()
S
72 1 5
removeCSSLinks()
S
72 1 5
prependSiblingToElement()
S
68 1 6
getModulePreloadLink()
S
71 1 7
getNewCssLink()
S
79 1 3
removeAutoLcp()
S
82 1 3
getPreloadLink()
S
75 1 4
prependChildToHead()
S
74 1 4
appendChildToHTML()
S
64 1 9
setImgAttributes()
S
74 1 4
__construct()
S
80 1 3